package org.sgx.gwteditors.testgallery.gallery.simple;

import java.util.Date;
import java.util.Map;

import org.sgx.gwteditors.client.impl1.basetypes.Color;
import org.sgx.gwteditors.client.impl1.simple.BooleanEditor;
import org.sgx.gwteditors.client.impl1.simple.ColorEditor;
import org.sgx.gwteditors.client.impl1.simple.DateEditor;
import org.sgx.gwteditors.client.impl1.simple.IntegerEditorEntry;
import org.sgx.gwteditors.client.impl1.simple.StringEditorEntry;
import org.sgx.gwteditors.client.util.TestUtil;
import org.sgx.gwteditors.testgallery.gallery.Test;
import org.sgx.gwteditors.testgallery.gallery.TestResources;

import com.google.gwt.resources.client.ExternalTextResource;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;

public class SimpleDateEditorTest implements Test {	

@Override
/*---begintestmaincode---*/
public void test(Panel parent) {		
	Date date = new Date();
	DateEditor ed = new DateEditor(); 
	ed.load(date); 
	parent.add(ed.getWidget());
}
/*---endtestmaincode---*/
	
	//test stuff
	@Override
	public String getName() {
		return "SimpleDateEditorEntry";
	}

	@Override
	public String[] getTags() {		
		return null;
	}

	@Override
	public String getDescription() {
		return "SimpleDateEditorEntry";
	}
	@Override
	public Map<String, ExternalTextResource> getJavaSources() {
		return TestUtil.getResource(getName(), TestResources.INSTANCE.SimpleDateEditorTest());
	}
	
}
